package com.sdp.wx.db.wx_repair_vehicle_item.service;

import com.sdp.wx.db.wx_repair_vehicle.entity.WxRepairVehicle;
import com.sdp.wx.db.wx_repair_vehicle_item.entity.WxRepairVehicleItem;
import com.sdp.wx.view.WxRepairMustItemView;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zsp
 * @since 2024-01-18
 */
public interface IWxRepairVehicleItemService extends IService<WxRepairVehicleItem> {

	/**
	 * 根据维修单号查询维修项目信息
	 * @param repairCode
	 * @return
	 */
	List<WxRepairVehicleItem> queryWxRepairVehicleItemByRepairCode(String repairCode);
	
	/**
	 * 添加必修项目信息
	 * @param mustItemList
	 * @param repairVehicle
	 */
	void addMustRepairVehicleItem(List<WxRepairMustItemView>mustItemList,WxRepairVehicle repairVehicle);
	
	/**
	 * 是否全部派工
	 * @param repairCode
	 * @return
	 */
	boolean isDispatch(String repairCode);
	
	BigDecimal queryHourAmount(String repairCode);
}
